{{include file='header.htm' title='个人档案'}}
<script type="text/javascript">
    <!--
    
    $(function () {
        $('textarea.limited').maxlength({
            'feedback' : '.charsLeft', 
			'useInput' : true
        });
    });
    
    //-->
</script>
<DIV id=content>
	<DIV id=heading>
		<H1>
			<div class="avatar1"><img src="avatar.php?uid={{$uid}}" alt="zwtxdy" class="avatar" /></div>
			关于{{$username}}
		</H1>
		<DIV class=clear></DIV>
	</DIV>
	<DIV class=clear></DIV>
	<DIV id=leftWrapper>
		<DIV id=container>
			<DIV id=main>
				<h3>个人资料</h3>
				<ul class="profile">
<li>姓名：{{$profiledata.truename|default:'保密'}}</li>
<li>性别：{{$sex}}</li>
<li>生日：{{$profiledata.birthyear|default:1900}}年{{$profiledata.birthmonth|default:1}}月{{$profiledata.birthday|default:1}}日</li>
<li>婚恋：{{$marry}}</li>
<li>QQ：{{$profiledata.qq|default:'保密'}}</a></li>
<li>网址:<a href="http://{{$profiledata.website|default:'保密'}}" target="_blank">{{$profiledata.website|default:'保密'}}</a></li>
</ul>
<div class="clear"></div>
<h3>个人简介</h3>
				<div id="description">{{$profiledata.user_description|default:'暂无'}}</div>
<div class="clear"></div>
<h3>留言板</h3>
			<div class="comments_list" id="comment">

				<ul id="comment_ul">
				
			{{section name=clist loop=$commentdata }}	
					<li id="comment_1_li">
						<div class="avatar1">
							<a href="index.php?m=profile&a=view&userid={{$commentdata[clist].authorid}}"><img src="avatar.php?uid={{$commentdata[clist].authorid}}" alt="zwtxdy" class="avatar" /></a>
						</div>
						<div class="title">
							<div class="r_option">
									{{if $smarty.session.user_id == $commentdata[clist].uid}}
<a href='index.php?m=comment&a=delete&cid={{$commentdata[clist].comment_id}}&id={{$commentdata[clist].id}}&idtype=3'>删除</a>
{{/if}}
							</div>
							<a href="index.php?m=profile&a=view&userid={{$commentdata[clist].authorid}}" id="author_1">{{$commentdata[clist].author}}</a> 于<span class="time">{{$commentdata[clist].created|date_format:'%Y-%m-%e'}}</span>说
						</div>
						<div class="detail" id="comment_1">{{$commentdata[clist].message}}</div>
					</li>
				{{/section}}
								
				</ul>

			</div>
			<div class="page">{{$commentmulti}}</div>
			<DIV id=commentMaker>
				<H3>我来说两句</H3>
				<form id=commentForm name=commentForm
				action='index.php?m=comment&a=post' 
				method=post>
				<INPUT type=hidden value={{$uid}} name=userid>
								<input type=hidden value=3 name=idtype>
				<P><textarea id=comment_content class='limited' name=pcomment rows=8 ></textarea> 
				<br />  还可以输入 <span class="charsLeft">200</span> 个字符       
				<input type="hidden" name="maxlength" value="200" />
				</P>

				<P><INPUT class=Btn tabIndex=2 type=submit value=直接发表></P>
				</FORM>
			</DIV>
	</DIV>
	
	<DIV id=sidebar>
		<DIV class=inner>
<ul class="line_list">
<li><img src="./images/album.gif"><a href="index.php?m=album&a=albumlist&userid={{$uid}}">查看相册</a></li>
<li><img src="./images/icon_unread_bw.gif"><a href="index.php?m=pm&a=pm&username={{$username|escape:"url"}}">发送消息</a></li>
{{if $smarty.session.user_id == $uid}}
<li><img src="./images/spanner.gif"><a href="index.php?m=profile&a=manage"">编辑资料</a></li>
{{/if}}
</ul>
		</DIV>
	</DIV>
</DIV>
<DIV class=clear></DIV></DIV></DIV>
{{include file='footer.htm'}}
